export default {
    state: {
        config: {},
        loading: false,
        showSidebar: true
    },
    mutations: {
        setConfig(state, value) {
            state.config = value
        },
        setTitle(state, value) {
            state.title = value
        },
        setLoading(state, value) {
            state.loading = value
        },
        toggleSidbar(state) {
            state.showSidebar = !state.showSidebar
        }
    }
}